package com.mengzhilan.service;

import org.xlp.mvc.context.ApplicationContextUtils;

/**
 * 基本数据库操作服务获取工具类
 */
public class BaseServiceHelper {
    private static final ApplicationBaseService BASE_SERVICE = new ApplicationBaseService();

    /**
     * 获取基础数据库服务操作类
     * @return
     */
    public static ApplicationBaseService getBaseService(){
        return BASE_SERVICE;
    }

    /**
     * 获取批量更新服务
     * @return
     */
    static BatchBaseService getBatchBaseService(){
        return ApplicationContextUtils.getBean(BatchBaseService.BEAN_ID);
    }
}
